import {useRequest} from "v-cairn";

export async function login(username:string, password:string) {
    const { send } = useRequest();
    const res = await send({
        url: '/permission/login',
        method: 'post',
        data: {
            username, password
        }
    });
    console.log(res, '-----');
    return res;
}